<?php
//--Get all CMS --->
$sql = "Select * from cms where status=51 order by title asc";
$query = $this->db->query($sql);
$cms = $query->result();

//--Popular Cities -->
$sql = "select city from listing_master group by city limit 10";
$query = $this->db->query($sql);
$popular_city = $query->result();
?>
<script>
    
    $('.fancybox').fancybox();
    
    $(document).ready(function() {
        $('.fancybox').fancybox({
            padding : 5,
            openEffect  : 'elastic'
            
        });
       
    });
    $(document).ready(function() {
        $('.news_letter').fancybox({
            padding : 0,
            openEffect  : 'none'
        });
       
    });
    		
                                
</script>

<div class="wrapper  marg_bottom_1">

    <div class="box_of_links fleft" style="width:300px; margin-right: 10px ">
        <div class="marg_bottom_line"><h2>Site Links:-</h2></div>
        <?php foreach ($cms as $cms) : ?>
            <span style="width: 145px; display: inline-block">
                <a href="<?= base_url(); ?>cms/<?= url_title(strtolower($cms->title)); ?>/<?= $cms->id; ?>"><?= $cms->title; ?></a></span>
        <?php endforeach; ?>
    </div><!--LINKS -->


    <div class="box_of_links fleft" style="width:300px; margin-right: 10px">
        <div class="marg_bottom_line"><h2>Popular Cities:-</h2></div> 
        <div>
            <?php foreach ($popular_city as $popular_city) : ?>
                <span style="width: 145px; display: inline-block;">
                    <a href="<?= base_url(); ?>"> <?= trim($this->location_model->get_city_name($popular_city->city)); ?> </a>
                </span>
            <?php endforeach; ?>
        </div>
    </div><!--LINKS -->

    <div class="box_of_links fleft" style="width:200px; margin-right: 10px">
        <div class="marg_bottom_line"><h2>Social Share:-</h2></div>
        <div>
            <a href="#" class="tooltips" title="facebook"><img src='<?= base_url(); ?>assets/images/fb.png' /></a> 
            <a href="#" class="tooltips" title="Google Plus"><img src='<?= base_url(); ?>assets/images/google.png' /></a> 
            <a href="#" class="tooltips" title="Twitter"><img src='<?= base_url(); ?>assets/images/twitter.png' /></a> 
            <a href="#" class="tooltips" title="Youtube"><img src='<?= base_url(); ?>assets/images/youtube.png' /> </a>
            
        </div>
    </div>
    <div class="box_of_links fright" style="width:200px; ">
        <a href="<?= base_url(); ?>ajax/contact_seller/" class="news_letter fancybox.ajax "><img src='<?= base_url(); ?>assets/images/subscribe-button.png' alt="Subscribe to our Newsletter" width="180px" /> </a>
    </div><!--LINKS -->

    <div class="clear"></div>
    <div class="copy fright">Copyright <?= $this->settings_model->get_setting('webtitle'); ?>    &nbsp; @ <?= date('Y', now()); ?><br><!-- {%FOOTER_LINK} --></div>